package com.springbootproduct.feignservice;

import com.springbootproduct.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;

public interface HelloFeignService {
    @GetMapping(value = "/hello")
    String sayHello(@RequestParam("name") String name);
    @GetMapping(value = "/test")
    List<User> test();
    @PostMapping("save")
    public void save(@RequestBody User user);
    @GetMapping("update")
    public void update();
}
